package design.patterns.observer.advanceobserver;

import design.patterns.observer.simpleobserver.ConcreteObserver;
import design.patterns.observer.simpleobserver.Observer;

/**
 * @Desc:   客户端
 * @author: cww
 * @DateTime: 2020/6/12 9:25
 */

public class Client {
    private static ConcreteSubject subject;
    private static Observer observer;

    public static void main(String[] args) {
        // 主题对象
        subject = new ConcreteSubject();
        observer = new ConcreteObserver();
        subject.attatch(observer);
        subject.change("改变");
    }
}
